import {Http} from '../utils/http.js'
class LikeModule extends Http{
  like(like, artId, category){
    let url = like ? 'like' :'like/cancel'
    this.request({
      url: url,
      method:'POST',
      data:{
        'art_id': artId,
        'type': category
      }
    })
  }
}

export { LikeModule}